import request from '../utils/request';

export const agentLogin = (data: any) => {
    return request({
        url: '/api/agent/login',
        method: 'post',
        data
    });
};

export const goodsList = (data: any) => {
    return request({
        url: '/api/agent/goodsList',
        method: 'get',
        params: data
    });
};
export const agentModifyGoodsPrice = (data: any) => {
    return request({
        url: '/api/agent/modifyGoodsPrice',
        method: 'post',
        data
    });
};

export const agentUserList = (data: any) => {
    return request({
        url: '/api/agent/userList',
        method: 'get',
        params: data
    });
};
export const agentOrderList = (data: any) => {
    return request({
        url: '/api/agent/orderList',
        method: 'get',
        params: data
    });
};
export const agentRechargeList = (data: any) => {
    return request({
        url: '/api/agent/rechargeList',
        method: 'get',
        params: data
    });
};
export const agentWithdrawList = (data: any) => {
    return request({
        url: '/api/agent/withdrawList',
        method: 'get',
        params: data
    });
};


export const agentWithdraw = (data: any) => {
    return request({
        url: '/api/agent/withdraw',
        method: 'post',
        data
    });
};

export const agentBotList = (data: any) => {
    return request({
        url: '/api/agent/botList',
        method: 'get',
        params: data
    });
};

export const agentAddBot = (data: any) => {
    return request({
        url: '/api/agent/addBot',
        method: 'post',
        data
    });
};
export const agentSetBotCallback = (data: any) => {
    return request({
        url: '/api/agent/setBotCallback',
        method: 'post',
        data
    });
};
export const agentDelCallback = (data: any) => {
    return request({
        url: '/api/agent/delCallback',
        method: 'post',
        data
    });
};

export const agentAutoReply = () => {
    return request({
        url: '/api/agent/autoReply',
        method: 'get',

    });
};
export const agentUpdateAutoReply = (data: any) => {
    return request({
        url: '/api/agent/updateAutoReply',
        method: 'post',
        data
    });
};

export const agentMoneyLogList = (data: any) => {
    return request({
        url: '/api/agent/moneyLogList',
        method: 'get',
        params: data
    });
};
export const agentInfo = () => {
    return request({
        url: '/api/agent/info',
        method: 'get',

    });
};
export const agentLogout = () => {
    return request({
        url: '/api/agent/logout',
        method: 'post',

    });
};
export const agentModifyPassword = (data: any) => {
    return request({
        url: '/api/agent/modifyPassword',
        method: 'post',
        data
    });
};

export const agentStarOrderList = (data: any) => {
    return request({
        url: '/api/agent/starOrderList',
        method: 'get',
        params:data
    });
};
export const agentStarGoodsList = (data: any) => {
    return request({
        url: '/api/agent/starGoodsList',
        method: 'get',
        params:data
    });
};

export const agentStarGoodsDetail = (data: any) => {
    return request({
        url: '/api/agent/starGoodsDetail',
        method: 'get',
        params:data
    });
};
export const agentModifyStarGoodsPrice = (data: any) => {
    return request({
        url: '/api/agent/modifyStarGoodsPrice',
        method: 'post',
        data
    });
};
export const agentEditBot = (data: any) => {
    return request({
        url: '/api/agent/editBot',
        method: 'post',
        data
    });
};
export const agentFragmentGoodsList = (data: any) => {
    return request({
        url: '/api/agent/fragmentGoodsList',
        method: 'get',
       params: data
    });
};
export const agentCountryList = () => {
    return request({
        url: '/api/agent/countryList',
        method: 'get',
      
    });
};

export const agentModifyFragmentGoodsPrice = (data: any) => {
    return request({
        url: '/api/agent/modifyFragmentGoodsPrice',
        method: 'post',
       data
    });
};
export const agentFragmentGoodsDetail = (data: any) => {
    return request({
        url: '/api/agent/fragmentGoodsDetail',
        method: 'post',
       params: data
    });
};
export const agentFragmentOrderList = (data: any) => {
    return request({
        url: '/api/agent/fragmentOrderList',
        method: 'get',
       params: data
    });
};

export const agentMessageList = (params: any) => {
    return request({
        url: '/api/agent/messageList',
        method: 'get',
       params
    });
};

export const agentUpload = (data: any) => {
    return request({
        url: '/api/agent/upload',
        method: 'post',
       data
    });
};
export const agentAddMessage = (data: any) => {
    return request({
        url: '/api/agent/addMessage',
        method: 'post',
       data
    });
};

export const agentEditMessage = (data: any) => {
    return request({
        url: '/api/agent/editMessage',
        method: 'post',
       data
    });
};

export const agentPushMessage = (data: any) => {
    return request({
        url: '/api/agent/pushMessage',
        method: 'post',
       data
    });
};
export const agentPushRecordList = (params: any) => {
    return request({
        url: '/api/agent/pushRecordList',
        method: 'get',
       params
    });
};

export const agentDelMessage = (data: any) => {
    return request({
        url: '/api/agent/delMessage',
        method: 'post',
       data
    });
};
export const agentDelPushMessage = (data: any) => {
    return request({
        url: '/api/agent/delPushMessage',
        method: 'post',
       data
    });
};
export const agentChildrenAgentList = (params: any) => {
    return request({
        url: '/api/agent/childrenAgentList',
        method: 'get',
       params
    });
};
export const agentAddChildrenAgent = (data: any) => {
    return request({
        url: '/api/agent/addChildrenAgent',
        method: 'post',
       data
    });
};
export const agentEditChildrenAgent = (data: any) => {
    return request({
        url: '/api/agent/editChildrenAgent',
        method: 'post',
       data
    });
};
export const agentApiaccountGoodsList = (params: any) => {
    return request({
        url: '/api/agent/apiaccountGoodsList',
        method: 'get',
       params
    });
};
export const agentApiaccountOrderList = (params: any) => {
    return request({
        url: '/api/agent/apiaccountOrderList',
        method: 'get',
       params
    });
};


